package com.jinbaoty.recyclebins.server;

import androidx.annotation.NonNull;

import com.alibaba.fastjson.JSONArray;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
@Table(name="user_info")
public class UserInfo implements Serializable {
    public static final int REG_DONE = 0x01;
    public static final int REG_READY = 0x11;
    public static final int REG_NONE = 0x00;
    private int status;
    @Column(name="user_id",isId=true)
    private String userId;
    @Column(name="user_name")
    private String userName;
    @Column(name="user_no")
    private String userNo;
    @Column(name="photo_name")
    private String photoName;

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    @Column(name="user_type")
    private String userType;

    @Column(name="card_no")
    private String cardNo;

    public JSONArray getCategories() {
        return categories;
    }

    public void setCategories(JSONArray categories) {
        this.categories = categories;
    }

    private JSONArray categories;

    public String getUserId() {
        return userId;
    }
    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }
    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getPhotoName() {
        return photoName;
    }

    public void setPhotoName(String photoName) {
        this.photoName = photoName;
    }
    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    @NonNull
    @Override
    public String toString() {

        return "{"+this.getUserId()+","+this.getUserNo()+","+this.getUserName()+","+this.getPhotoName()+","+this.getUserType()+"}";
    }
}
